package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.mapper.AssetStorageMapper;
import com.group.eams.pojo.dto.AssetStorageQueryDto;
import com.group.eams.pojo.dto.FixedAssetDetailQueryDto;
import com.group.eams.pojo.entity.AssetStorage;
import com.group.eams.pojo.vo.AssetStorageListVo;
import com.group.eams.pojo.vo.FixedAssetDetailListVo;
import com.group.eams.service.AssetStorageService;
import org.springframework.stereotype.Service;

/**
* @author 恩哲欣
* @description 针对表【asset_storage(资产入库表)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class AssetStorageServiceImpl extends ServiceImpl<AssetStorageMapper, AssetStorage>
implements AssetStorageService{
    @Override
    public Page<AssetStorageListVo> findAssetStorageList(Page<AssetStorage> page, AssetStorageQueryDto assetStorageQueryDto) {
        return getBaseMapper().findAssetStorageList(page,assetStorageQueryDto);
    }

    // 通过申请编号查询入库信息
    @Override
    public AssetStorage findByApplicationNum(String applicationNum) {
        return getBaseMapper().findByApplicationNum(applicationNum);
    }

    // 查询入库资产详情
    @Override
    public Page<FixedAssetDetailListVo> findByQueryDto(Page<FixedAssetDetailListVo> page, FixedAssetDetailQueryDto fixedAssetDetailQueryDto) {
        return getBaseMapper().findByQueryDto(page,fixedAssetDetailQueryDto);
    }
}
